import React from 'react';
import {AdListUlWrap} from '../style'
function AdListUl(props) {
   let data = props.data;
    return (
        <AdListUlWrap>
            <h2> 热门推荐 </h2>
            <div className="ad-container clear-fix">
                {data.map((item, index) => {              
                    return <div key={index} className="ad-item ">
                        <a href={item.link}>
                            <img src={item.img} alt={item.title} />
                        </a>
                    </div>
                })}
            </div>
        </AdListUlWrap>
    );
}
export default AdListUl